<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<div class="row-fluid">
<div class="span12">
<div class="box gradient">
<div class="title">
<h4><span>Authority </span></h4>

<a href="#" class="minimize">Minimize</a></div>

<div class="content scrollable clearfix">
<table class="dynamicTable display table table-bordered">
	<thead>
		<tr>
			<th>Name</th>
			<th>Show Name</th>
			<th>Permissions</th>
			<th>actions</th>
		</tr>
	</thead>
	<tbody>
		<c:set var="allEntity" value="${requestScope.page.result}" />
		<c:if test="${allEntity!=null}">
			<c:forEach var="entity" items="${allEntity}">
				<tr>
					<td>${entity.name}</td>

					<td>${entity.name}</td>
					<td>
					<div class="txt row-fluid span12"><c:forEach var="authority"
						items="${entity.authorityList}">
						<span class="badge badge-inverse">${authority.name}</span>
					</c:forEach></div>
					</td>
					<td>
					<div class="controls center"><a
						href="${ctx }/security/role/${entity.id}/edit/" title="Edit task"
						class="tip"><span class="icon12 icomoon-icon-pencil"></span></a> <a
						href="${ctx }/security/role/${entity.id}/remove/"
						title="Remove task" class="tip"><span
						class="icon12 icomoon-icon-remove"></span></a></div>
					</td>


				</tr>
			</c:forEach>
		</c:if>
	</tbody>
</table>
</div>
</div>
</div>

<a href="${ctx}/security/role/create/" class="btn btn-info"> <span
	class="icon12 icomoon-icon-plus white"></span> New</a></div>

</div>